/*
 * $Id$
 *
 * Copyright 2006- Revolution Health Group.  All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of Revolution Health Group.  (Confidential Information).
 * You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license 
 * agreement you entered into with Revolution Health Group.
 *
 */
package org.javason.jsonrpc;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

public class ArrayWithEnum {
	
	public void doSomething(ArrayOfRelationshipTypeList relationshipTypes) {
		try {
			for (RelationshipTypeList relationshipTypeList : relationshipTypes.getRelationshipTypeList()) {
				System.out.println("relationshipTypeList = " + relationshipTypeList.toString());
			}
			assert (relationshipTypes.getRelationshipTypeList().get(0).equals(RelationshipTypeList.CHILD));
			System.out.println("relationshipTypes = " + ReflectionToStringBuilder.toString(relationshipTypes));
		} catch (Exception exception) {
			exception.printStackTrace();
			throw new RuntimeException(exception);
		}
	}
}
